package com.sfhk.service.impl;

import com.sfhk.dao.ProductDao;
import com.sfhk.dao.impl.ProductDaoImpl;
import com.sfhk.domain.Product;
import com.sfhk.service.ProductService;

import java.util.List;

public class ProductServiceImpl implements ProductService {
    private ProductDao productDao = new ProductDaoImpl();
    @Override
    public List<Product> queryProduct() {
        List<Product> list = productDao.findAll();
        return list;
    }


    @Override
    public List<Product> queryProductByCategory(String cid) {
        return null;
    }
}
